<template>
  <p v-show="ziCar">child 给的: {{ ziCar }}</p>
  <br />
  <hr />
  <emitChild @ha-emit="sendToy"></emitChild>
</template>
<script setup lang="ts">
import { ref } from "vue";
import emitChild from "@/components/sub/emit-child.vue";
let ziCar = ref("");
let sendToy = (value: string, x: Event) => {
  console.log("value", value);
  ziCar.value = value;
};
</script>
<style lang="scss" scoped></style>
